package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("area")
@ApiModel(description = "区域表")
public class Area implements Serializable {
    @ApiModelProperty("主键，自增区域ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联站点ID")
    @TableField("site_id")
    private Long siteId;

    @ApiModelProperty("区域名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("上级区域ID")
    @TableField("parent_area_id")
    private Long parentAreaId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updatedAt;
}


